<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>Django 1.6 在Windows平台下的配置</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="Zendwind">

    <!-- Le styles -->
    <link rel="stylesheet" href="../../../../theme/css/bootstrap.min.css" type="text/css" />
    <style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
      .sidebar-nav {
        padding: 9px 0;
      }
      .tag-1 {
        font-size: 13pt;
      }
      .tag-2 {
        font-size: 10pt;
      }
      .tag-2 {
        font-size: 8pt;
      }
      .tag-4 {
        font-size: 6pt;
     }
    </style>
    <link href="../../../../theme/css/bootstrap-responsive.min.css" rel="stylesheet">
        <link href="../../../../theme/css/font-awesome.css" rel="stylesheet">

    <link href="../../../../theme/css/pygments.css" rel="stylesheet">

    <!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    <!-- Le fav and touch icons -->
    <link rel="shortcut icon" href="../../../../theme/images/favicon.ico">
    <link rel="apple-touch-icon" href="../../../../theme/images/apple-touch-icon.png">
    <link rel="apple-touch-icon" sizes="72x72" href="../../../../theme/images/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="114x114" href="../../../../theme/images/apple-touch-icon-114x114.png">

    <link href="../../../../" type="application/atom+xml" rel="alternate" title="ZendWind ATOM Feed" />
    <link href="../../../../feeds/all.rss.xml" type="application/atom+xml" rel="alternate" title="ZendWind RSS Feed" />

  </head>

  <body>

    <div class="navbar navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container-fluid">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
          <a class="brand" href="../../../../index.html">ZendWind </a>
          <div class="nav-collapse">
            <ul class="nav">
                  <li><a href="http://www.zendwind.com"><font color="#58ACFA">主页</font></a></li>
                  <li><a href="http://www.zendwind.com/category/c.html"><font color="#58ACFA">C/C++</font></a></li>
                  <li><a href="http://www.zendwind.com"><font color="#58ACFA">Linux</font></a></li>
                  <li><a href="http://www.zendwind.com/category/python.html"><font color="#58ACFA">Python</font></a></li>
                  <li><a href="http://www.zendwind.com/feeds/all.atom.xml"><font color="#58ACFA">Feed</font></a></li>
                  <li><a href="http://www.zendwind.com"><font color="#58ACFA">生活杂谈</font></a></li>
                  <li><a href="http://www.zendwind.com/category/about.html"><font color="#58ACFA">About</font></a></li>
                          <li class="divider-vertical"></li>
		    </ul>
            <!--<p class="navbar-text pull-right">Logged in as <a href="#">username</a></p>-->
          </div><!--/.nav-collapse -->
        </div>
      </div>
    </div>

    <div class="container-fluid">
      <div class="row">
        <div class="span9" id="content">
<section id="content">
        <article>
                <header>
                        <h1>
                                <a href=""
                                        rel="bookmark"
                                        title="Permalink to Django 1.6 在Windows平台下的配置">
                                        Django 1.6 在Windows平台下的配置
                                </a>
                        </h1>
                </header>
                <div class="entry-content">
                <div class="well">
<footer class="post-info">
<span class="label">Date</span>
<abbr class="published" title="2014-01-06T00:00:00">
        <i class="icon-calendar"></i>周一 06 一月 2014
</abbr>
<span class="label">By</span>
<a href="../../../../author/zendwind.html"><i class="icon-user"></i>Zendwind</a>
<!--
<span class="label">Category</span>
<a href="../../../../category/python.html"><i class="icon-folder-open"></i>Python</a>.
-->

<span class="label">Tags</span>
	<a href="../../../../tag/django.html"><i class="icon-tag"></i>Django</a>
</footer><!-- /.post-info -->                </div>
                <h2>Django 1.6 在Windows平台下的配置</h2>
<p><strong>前言</strong></p>
<p>最近两天研究了下<code>Django1.6</code>在Windows平台中的配置安装，服务器采用Apache。期间遇到过许多新手所遇到的各种问题，也算是一种宝贵经历，问题原因主要是关于新版Django静态文件的配置问题，尤其是media和static两种文件的混淆。网上很多教程都是基于比较老的版本所写，导致配置思路有差异，最有价值的内容当属<a href="http://docs.djangoproject.com/en/1.6/">Django官网</a>的参考资料，值得细读。</p>
<p><strong>配置环境</strong></p>
<p><strong><em>Python</em></strong>：2.7.6</p>
<p><strong><em>Apache</em></strong>: 2.2</p>
<p><strong><em>Django</em></strong>: 1.6</p>
<p><strong><em>OS</em></strong>: windows 7</p>
<p><strong>目录</strong></p>
<ul>
<li><a href="#install_python">Python安装</a><ul>
<li><a href="#install_py_soft">Python软件安装</a></li>
<li><a href="#install_py_packages">Python包安装</a></li>
</ul>
</li>
<li><a href="#apache_install">Apache安装</a></li>
<li><a href="#django_install">Django安装</a><ul>
<li><a href="#django_download">Django下载</a></li>
<li><a href="#wsgi_config">Mod_WSGI配置</a></li>
</ul>
</li>
<li><a href="#django_project">Django工程创建</a><ul>
<li><a href="#crate_project">创建工程</a></li>
<li><a href="#config_setting">Settings.py设置</a> </li>
<li><a href="#config_wsgi">wsgi.py设置</a></li>
<li><a href="#config_apache">apache配置</a></li>
<li><a href="#test_project">测试工程</a></li>
</ul>
</li>
<li><a href="#summary">总结</a></li>
</ul>
<h2 id="install_python">Python 安装</h2>

<h3 id="install_py_soft">Python软件安装</h3>

<p>到<a href="http://www.python.org">Python官网</a>下载相应Win32版本的即可，我的是2.7.6。关于Python版本的选择在网上有很多介绍，因为3.X以上版本很多模块不支持，所以最好选择2.X安装。下载完后直接点击安装，至于安装路径可选择默认也可自定义。建议是最好不要放在类似<code>Program Files</code>的文件夹中，直接放在C盘或其它盘根目录下。因为我在用Mingw32创建Django工程时，安装在此路径下的python会出现<code>C:\program: bad interpreter</code>错误，也可能是自己未配置好的原因。软件安装好后将python安装目录添加到环境变量<code>PATH</code>。
<h3 id="install_py_packages">Python包安装</h3>
由于安装Django我使用的是Pip安装，所以在此先安装Pip包，我一般选择<a href="http:/e.pypi.python.org/simple/">国内的安装源</a>，不仅速度快且稳定,上面基本上囊括了PyPi的所有包，很方便。找到PIP相应的目录选择相应的版本，点击下载即可，然后将目录解压，进入目录执行如下命令安装。</p>
<div class="highlight"><pre><span class="n">python</span> <span class="n">setup</span><span class="p">.</span><span class="n">py</span> <span class="n">install</span>
</pre></div>


<p>安装好后，需要将<code>[python安装目录]/Scripts</code>路径添加到环境变量，以便在任何地方使用。
<h2 id="apache_install">Apache安装</h2>
目前用得最广的版本是2.2，直接到<a href="http://httpd.apache.org">Apache官网</a>下载即可。关于是否安装Apache还是Nginx的问题，网上有相关介绍，各有优势，不在此赘述。
<h2 id="django_install">Django 安装</h2>
<h3 id="django_download">Django下载</h3>
进入命令行，可以是Windows CMD, 我用的是Mingw32，执行如下命令：</p>
<div class="highlight"><pre><span class="err">$</span> <span class="n">pip</span> <span class="n">install</span> <span class="n">django</span> <span class="o">-</span><span class="n">i</span> <span class="n">http</span><span class="o">:</span><span class="c1">//e.pypi.python.org/simple/</span>
</pre></div>


<p>命令中指定下载安装源。安装好后会在Python安装目录中的Lib/Site-packages/路径下生成Django目录，同时会为在Python安装目录下的Scripts/目录中产生<code>django-admin.py</code>文件，此文件就是我们需要用来创建Django工程和应用的主文件，需要详细了解。安装好后需要测试是否安装成功，进入Python　Shell环境，执行<code>import django</code>命令，如果未出现错误说明Django安装成功。
<h3 id="wsgi_config">Mod_WSGI配置</h3>
下载<a href="http://download.csdn.net/detail/xyw_eliot/5613957">mod_wsgi.so</a>文件，并配置mod_wsgi模块, 找到Apache安装目录下Conf/httpd.conf,在LoadModule处添加如下语句：</p>
<div class="highlight"><pre><span class="n">LoadModule</span> <span class="n">wsgi_module</span> <span class="n">modules</span><span class="o">/</span><span class="n">mod_wsgi</span><span class="p">.</span><span class="n">so</span>
</pre></div>


<h2 id="django_project">Django工程创建</h2>

<h3 id="create_project">创建工程</h3>

<p>Django工程的创建利用<code>django-admin.py</code>进行,在相应的目录执行如下命令即可创建一个Django工程：</p>
<div class="highlight"><pre><span class="n">django</span><span class="o">-</span><span class="n">admin</span><span class="p">.</span><span class="n">py</span> <span class="n">startproject</span> <span class="n">zend</span>
</pre></div>


<p>其中，<code>zend</code>是工程名。工程创建好之后，架构如下所示：</p>
<div class="highlight"><pre><span class="n">zend</span>  <span class="err">#项目名称</span>
<span class="o">|</span>
<span class="o">--</span><span class="n">zend</span> <span class="err">#项目子文件夹</span>
<span class="o">|</span>
<span class="o">----</span><span class="n">__init__</span><span class="p">.</span><span class="n">py</span>  <span class="err">#项目初始化文件</span>
    <span class="o">|</span>
<span class="o">----</span><span class="n">settings</span><span class="p">.</span><span class="n">py</span>  <span class="err">#项目配置文件</span>
    <span class="o">|</span>
<span class="o">----</span><span class="n">urls</span><span class="p">.</span><span class="n">py</span>      <span class="err">#项目链接管理文件</span>
    <span class="o">|</span>
<span class="o">----</span><span class="n">wsgi</span><span class="p">.</span><span class="n">py</span>      <span class="err">#</span><span class="n">wsgi</span><span class="err">配置文件</span>
<span class="o">|</span>
<span class="o">--</span><span class="n">manage</span><span class="p">.</span><span class="n">py</span>     <span class="err">#项目管理文件，执行各种操作，如内置服务器启动，数据库表管理等</span>
</pre></div>


<p>在下面将以此工程进行介绍。
<h3 id="config_setting">Settings.py设置</h3>
此文件很关键，设置不对无法访问Django项目，设置涉及几个方面，主要字段有：</p>
<div class="highlight"><pre><span class="n">INSTALLED_APPS</span>  <span class="err">#关于</span><span class="n">APP</span><span class="err">方面的设置，如自己创建的</span><span class="n">APP</span>
<span class="n">DATABASES</span>       <span class="err">#数据库方面设置，</span><span class="n">mysql</span><span class="p">,</span><span class="n">sqlite3</span><span class="p">,</span><span class="n">oracle</span><span class="err">等</span>
<span class="n">STATICFILES_DIR</span> <span class="err">#静态文件目录设置</span>
<span class="n">TEMPLATE_DIRS</span>   <span class="err">#模板文件目录设置</span>
</pre></div>


<p><code>INSTALLED_APPS</code>字段主要涉及所创建的APP，其中最为关键的一点是关于<code>django.contrib.staticfiles</code>的设置，此处需添加上，这一步很关键。</p>
<p><code>DATABASES</code>字段，我设置的是Mysql，所以最后配置如下：</p>
<div class="highlight"><pre><span class="n">DATABASES</span> <span class="o">=</span> <span class="p">{</span>
    <span class="err">&#39;</span><span class="k">default</span><span class="err">&#39;</span><span class="o">:</span> <span class="p">{</span>
        <span class="err">&#39;</span><span class="n">ENGINE</span><span class="err">&#39;</span><span class="o">:</span> <span class="err">&#39;</span><span class="n">django</span><span class="p">.</span><span class="n">db</span><span class="p">.</span><span class="n">backends</span><span class="p">.</span><span class="n">mysql</span><span class="err">&#39;</span><span class="p">,</span><span class="err">#</span><span class="n">mysql</span> <span class="n">engine</span>
        <span class="err">&#39;</span><span class="n">NAME</span><span class="sc">&#39;:&#39;</span><span class="n">zend</span><span class="err">&#39;</span><span class="p">,</span>  <span class="err">#</span><span class="n">database</span> <span class="n">name</span>
        <span class="err">&#39;</span><span class="n">USER</span><span class="sc">&#39;:&#39;</span><span class="n">root</span><span class="err">&#39;</span><span class="p">,</span> <span class="err">#</span><span class="n">database</span> <span class="n">user</span>
        <span class="err">&#39;</span><span class="n">PASSWORD</span><span class="sc">&#39;:&#39;</span><span class="n">xxx</span><span class="err">&#39;</span><span class="p">,</span> <span class="err">#</span><span class="n">database</span> <span class="n">password</span>
        <span class="err">&#39;</span><span class="n">HOST</span><span class="sc">&#39;:&#39;</span><span class="err">&#39;</span><span class="p">,</span>  <span class="err">#主机名</span>
        <span class="err">&#39;</span><span class="n">PORT</span><span class="sc">&#39;:&#39;</span><span class="err">&#39;</span><span class="p">,</span>  <span class="err">#访问端口</span>
    <span class="p">}</span>
<span class="p">}</span>
</pre></div>


<p>在配置之前，需要创建数据库<code>zend</code>。</p>
<p><code>STATICFILES_DIR</code>字段，主要用来配置静态文件目录，当项目运行时，通过此目录找到相应的静态配置文件，如css,js,images等。配置如下：</p>
<div class="highlight"><pre><span class="n">STATIC_URL</span> <span class="o">=</span> <span class="err">&#39;</span><span class="o">/</span><span class="k">static</span><span class="o">/</span><span class="err">&#39;</span>
<span class="n">STATICFILES_DIRS</span><span class="o">=</span><span class="p">(</span><span class="n">os</span><span class="p">.</span><span class="n">path</span><span class="p">.</span><span class="n">join</span><span class="p">(</span><span class="n">BASE_DIR</span><span class="p">,</span><span class="s">&quot;static&quot;</span><span class="p">),)</span>
</pre></div>


<p><code>TEMPLATE_DIRS</code>字段，主要用来配置模板文件目录。配置如下：
<code>TEMPLATE_DIRS=( os.path.join(BASE_DIR,'templates'),)</code></p>
<p>配置STATICFILES_DIRS和TEMPLATE_DIRS需要在zend工程目录下创建static和templates文件夹，在apache配置时还提及media，所以同时创建media文件夹。同时最关键的是static文件夹的内容。如果在Apache中指定的static目录是工程目录下的static目录，则执行如下命令后会把site-packages/django/contrib/admin/static/下的内容拷贝到工程目录中的static文件夹中：</p>
<div class="highlight"><pre><span class="n">python</span> <span class="n">manage</span><span class="p">.</span><span class="n">py</span> <span class="n">collectstatic</span>
</pre></div>


<p>我是按照此方法来设置静态文件的。所以下面Apache的配置也是根据此目录来设置。</p>
<h3 id="config_wsgi">wsgi.py设置</h3>

<p>此文件是关于创建工程后的解析设置，文件内容如下：</p>
<div class="highlight"><pre><span class="n">import</span> <span class="n">os</span><span class="p">,</span><span class="n">sys</span>
<span class="n">os</span><span class="p">.</span><span class="n">environ</span><span class="p">.</span><span class="n">setdefault</span><span class="p">(</span><span class="s">&quot;DJANGO_SETTINGS_MODULE&quot;</span><span class="p">,</span> <span class="s">&quot;zend.settings&quot;</span><span class="p">)</span>
<span class="n">sys</span><span class="p">.</span><span class="n">path</span><span class="p">.</span><span class="n">append</span><span class="p">(</span><span class="n">r</span><span class="err">&#39;</span><span class="n">D</span><span class="o">:/</span><span class="n">www</span><span class="o">/</span><span class="n">django</span><span class="o">/</span><span class="n">zend</span><span class="err">&#39;</span><span class="p">)</span> <span class="err">#工程路径</span>
<span class="n">from</span> <span class="n">django</span><span class="p">.</span><span class="n">core</span><span class="p">.</span><span class="n">wsgi</span> <span class="n">import</span> <span class="n">get_wsgi_application</span>
<span class="n">application</span> <span class="o">=</span> <span class="n">get_wsgi_application</span><span class="p">()</span>
</pre></div>


<h3 id="config_apache">Apache配置</h3>

<p>此步骤是花时间比较多的步骤，一开始查阅网上资料说的都很乱，有的是Django版本不对，有的是Apache配置本身不对。最后静下心查看<a href="http://docs.djangoproject.com/en/1.6/">官网</a>的关于<a href="https://docs.djangoproject.com/en/1.6/howto/deployment/wsgi/modwsgi/">Apache的配置</a>文章才有所领悟。按照此文章的介绍，我整理了下我的配置思路，我主要是用虚拟目录方式来配置，区别就是我把<code>WSGIScriptAlias</code>语句放在了虚拟目录配置文件<code>httpd-vhost.conf</code>中，而常规的话是放在<code>httpd.conf</code>中。</p>
<blockquote>
<p>首先，把httpd.conf文件中的<code>Include conf/extra/httpd-vhosts.conf</code>去掉注释，以便在虚拟目录配置文件中进行Django配置。</p>
<p>其次，打开<code>conf/extra/httpd-vhosts.conf</code>文件，进行如下配置：</p>
</blockquote>
<div class="highlight"><pre><span class="nt">&lt;VirtualHost</span> <span class="err">*:80</span><span class="nt">&gt;</span>
DocumentRoot &quot;D:/www/django/zend&quot;
ServerName localhost
AliasMatch ^/(<span class="cp">[</span><span class="p">^</span><span class="o">/</span><span class="cp">]</span>*\.css) &quot;d:/www/django/zend/static/styles/$1
Alias /media/ &quot;d:/www/django/zend/media/&quot;
Alias /static/ &quot;d:/www/django/zend/static/&quot;
<span class="nt">&lt;Directory</span> <span class="err">&quot;D:/www/django/zend/static&quot;</span><span class="nt">&gt;</span>
    Order deny,allow
    Allow from all
<span class="nt">&lt;/Directory&gt;</span>
<span class="nt">&lt;Directory</span> <span class="err">&quot;D:/www/django/zend/media&quot;</span><span class="nt">&gt;</span>
    Order deny,allow
    Allow from all
<span class="nt">&lt;/Directory&gt;</span>

WSGIScriptAlias / &quot;d:/www/django/zend/zend/wsgi.py&quot;

<span class="nt">&lt;Directory</span> <span class="err">&quot;D:/www/django/zend/zend&quot;</span><span class="nt">&gt;</span>
<span class="nt">&lt;Files</span> <span class="err">wsgi.py</span><span class="nt">&gt;</span>     
    Order Deny,Allow
    Allow from all
<span class="nt">&lt;/Files&gt;</span>
<span class="nt">&lt;/Directory&gt;</span>
<span class="nt">&lt;/VirtualHost&gt;</span>
</pre></div>


<p><h3 id="test_project">测试工程</h3>
如果用Django内置服务器的话，进入工程目录，直接执行以下命令：</p>
<div class="highlight"><pre><span class="n">python</span> <span class="n">manage</span><span class="p">.</span><span class="n">py</span> <span class="n">runserver</span> <span class="p">[</span><span class="n">port</span><span class="p">]</span> <span class="err">#</span><span class="n">port</span><span class="err">可省略，默认为</span><span class="mi">8000</span>
</pre></div>


<p>在浏览器中输入localhost即可,如果出现<code>It works</code>等字眼，说明django配置成功。</p>
<p>如果用Apache的话，先启动apahce服务，然后输入<code>localhost</code>如果出现上述字眼，表明apache配置成功。
<h2 id="summary">总结</h2>
此文档主要是为记录安装过程所写，以备后忘，在配置过程中，遇到很多问题，从网上也找到一些资料参考，收获还是很多的。</p>
                </div><!-- /.entry-content -->
        </article>
</section>
        </div><!--/span-->
		
        <div class="span3 well sidebar-nav" id="sidebar">
<ul class="nav nav-list">
<li class="nav-header"><h4>分类目录</h4></li>
<hr color=#987cb9 SIZE=3 />
<li>
	<a href="../../../../category/about.html">
		About
	</a>	
</li>
<li>
	<a href="../../../../category/git.html">
		GIT
	</a>	
</li>
<li>
	<a href="../../../../category/python.html">
		Python
	</a>	
</li>

<li class="nav-header"><h4>标签云</h4></li>
<hr color=#987cb9 SIZE=3 />
<a href="../../../../tag/pygame.html">
        pygame&nbsp;&nbsp;
</a>
<a href="../../../../tag/eclipse.html">
        eclipse&nbsp;&nbsp;
</a>
<a href="../../../../tag/pelican.html">
        pelican&nbsp;&nbsp;
</a>
<a href="../../../../tag/django.html">
        Django&nbsp;&nbsp;
</a>
<a href="../../../../tag/push.html">
        push&nbsp;&nbsp;
</a>
<a href="../../../../tag/about.html">
        about&nbsp;&nbsp;
</a>
<a href="../../../../tag/git.html">
        git&nbsp;&nbsp;
</a>
<br />
<br />
<li class="nav-header"><h4>友情链接</h4></li>
<hr color=#987cb9 SIZE=3 />
    <li><a href="http://bbs.chinaunix.net/forum.php?gid=277" target=_blank>ChinaUnix运维专栏</a></li>
    <li><a href="http://bbs.linuxtone.org/forum.php" target=_blank>LinuxTone运维专栏</a></li>
    <li><a href="http://wiki.saltstack.cn/" target=_blank>SaltStack维基-自动化运维</a></li>
    <li><a href="http://www.huxiu.com/" target=_blank>虎嗅网-商业资讯与交流平台</a></li>
    <li><a href="http://www.36kr.com/" target=_blank>36氪-互联网创业</a></li>


</ul>        </div><!--/.well -->
		<!--add by zendwind-->
		<div class="span9" id="content">
			<hr size=2>
<!-- Baidu Button BEGIN -->
<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">

<a class="bds_qzone"></a>
<a class="bds_tsina"></a>
<a class="bds_tqq"></a>
<a class="bds_renren"></a>
<a class="bds_t163"></a>
<span class="bds_more"></span>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=0" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
</script>
<!-- Baidu Button END -->		</div>
		
		<div class="span9" id="content">
			<hr size=2>

<!-- Duoshuo Comment BEGIN -->
<div class="ds-thread"></div>
<script type="text/javascript">
var duoshuoQuery = {short_name:"zendwind"};
	(function() {
		var ds = document.createElement('script');
		ds.type = 'text/javascript';ds.async = true;
		ds.src = 'http://static.duoshuo.com/embed.js';
		ds.charset = 'UTF-8';
		(document.getElementsByTagName('head')[0] 
		|| document.getElementsByTagName('body')[0]).appendChild(ds);
	})();
	</script>
<!-- Duoshuo Comment END -->		</div>
		 
      </div><!--/row-->
	   
      <hr>

      <footer>
        <address id="about">
        <<center>Power by Pelican, Copyright@ <a href="http://www.zendwind.com">ZendWind</a></center>
        </address><!-- /#about -->
		<p><center> @ZendWind Personal Blog </center></p>
      </footer>

    </div><!--/.fluid-container-->


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
	var pageTracker = _gat._getTracker("UA-46020847-1");
pageTracker._trackPageview();
} catch(err) {}</script>
	

    <!-- Le javascript -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../../../../theme/js/jquery-1.7.2.min.js"></script>
    <script src="../../../../theme/js/bootstrap.min.js"></script>
  </body>
</html>